package com.example.demo.service;

import com.example.demo.config.base.DataService;
import com.example.demo.config.tool.CamelCase;
import com.example.demo.model.EduCourseKpoint;
import org.springframework.data.domain.Example;
import org.springframework.data.domain.Page;

public interface EduCourseKpointService extends DataService<EduCourseKpoint, Integer> {
    @Override
    default Page<EduCourseKpoint> findAll(Integer page, Integer size, String sortDirection){
        return this.findAll(page, size, sortDirection, CamelCase.toCamelCase("kpoint_id"));
    }

    @Override
    default Page<EduCourseKpoint> findAll(Example<EduCourseKpoint> example, Integer page, Integer size, String sortDirection){
        return this.findAll(example, page, size, sortDirection, CamelCase.toCamelCase("kpoint_id"));
    }
}
